package business.report.impl;

import business.report.ListedCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.ListedCompany;
import report.domain.ListedCompanyCriteria;
import report.mapper.ListedCompanyMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "listedCompanyService")
public class ListedCompanyServiceImpl implements ListedCompanyService{
    @Autowired
    ListedCompanyMapper listedCompanyMapper;

    @Override
    public List<ListedCompany> getListedCompany() {
        ListedCompanyCriteria criteria = new ListedCompanyCriteria();
        criteria.createCriteria().getAllCriteria();
        return listedCompanyMapper.selectByExample(criteria);
    }
}
